package com.utils;

import org.junit.Test;

import java.util.UUID;

public class IdUtils {
    /*用于生成Uid随机数*/
    public static String getId(){
        return UUID.randomUUID().toString().replaceAll("-","");
    }
    @Test
    public void testUid(){
        System.out.println(IdUtils.getId());
        System.out.println(IdUtils.getId());
        System.out.println(IdUtils.getId());
    }
}
